package cn.kgc.springhouse.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zwr
 * @since 2024-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
public class Houseinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "houseId", type = IdType.AUTO)
    private Integer houseId;

    @TableField("houseDesc")
    private String houseDesc;

    @TableField("typeId")
    private Integer typeId;

    @TableField("monthlyRent")
    private String monthlyRent;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "publishDate",fill = FieldFill.INSERT)
    private Date publishDate;

    @TableField("typeName")
    private String typeName;


}
